# -*- coding = utf-8 -*-
# @TIME:2024/10/25 10:07
# @Author:月的第一话
# @File:demo1.py
# @Software:PyCharm
class Animal:
    name = "Animal"
    def shout(self):
        print("animal shout")
animal=Animal()
print(animal.name)
animal.shout()
class Dog:
    name='dog'
    def __init__(self):
        self.age = 10
    def eat(self):

        print("dog eat")
dog =Dog()
print(dog.name)
dog.eat()
dog1=Dog()
dog1.name='ddddd1'
print(dog1.name)
print(Dog.name)
Dog.name='--dd'
print(dog1.name)
print(Dog.name)
print('---------')
dog2=Dog()
print(dog2.name)
print(dog2.age)